package com.erp.auto.service;

import com.ruoyi.auto.api.domain.ErpAutoSellerStoreConfig;
import com.ruoyi.common.core.domain.R;

import java.util.List;

/**
 * 自动化店铺配置
 *
 * @author WXX
 * @date 2023-12-27 19:22:13
 */
public interface ErpAutoSellerStoreConfigService {

    List<ErpAutoSellerStoreConfig> getList(ErpAutoSellerStoreConfig config);

    ErpAutoSellerStoreConfig selectById(Long id);

    String saveConfig(ErpAutoSellerStoreConfig config);

    int deleteConfigById(Long id);

    /**
     * 判断店铺是否禁用
     * @return false：被禁用，true：没有被禁用
     */
    boolean isDisable(Long storeId);

    int updateStatusById(Long id);

    R<Object> queryAutoStoreByStoreUserName(String storeUserName);

    R<Object> autoSubmitForReview(Long id);

    R<Object> getStoreListByUser();

    R<Object> setAutoSubmitStore(Long id, Integer type);

    R<Object> selectAutoStore(Long userId, Integer revision);

    R<Object> checkAutoStoreAuth(String id);

    R<Object> queryAutoStoreUserName();

    R<Object> resetActivityAllStore();

    R<Object> resetActivityByStoreUserName(String storeUserName);


    R<Object> supplementResetActivityError(String storeUserName, String activityId);

    R<Object> supplementResetActivityErrorZero();
}
